package com.checker.designPattern.creation.singleTon;

import java.util.HashSet;
import java.util.Map;
import java.util.concurrent.*;

public class DCL {
    private static volatile DCL sigleton;

    private DCL() {
    }

    public static DCL getInstance() {
        if (sigleton == null) {
            synchronized (DCL.class) {
                if (sigleton == null) {
                    sigleton = new DCL();
                }
            }
        }
        return sigleton;
    }
}

